﻿using System.ComponentModel;
using CozeDomain.Base;
using FreeSql.DataAnnotations;

namespace CozeDomain.Entities
{
    /// <summary>
    /// 用户消费记录模型
    /// </summary>
    [Table(Name = "ConsumptionHistory")]
    [Description("用户消费记录")]
    public class ConsumptionHistoryEntity : BaseTenantsEntity
    {
        /// <summary>
        /// 所属用户ID
        /// </summary>
        [Column(DbType = "varchar", StringLength = 36, IsNullable = false)]
        [Description("所属用户ID")]
        public string? UserId { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        [Column(DbType = "double", StringLength = 18, IsNullable = true)]
        [Description("充值金额")]
        public double? Amount { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(DbType = "varchar", StringLength = 500, IsNullable = true)]
        [Description("描述")]
        public string? Description { get; set; }
    }
}
